// packageF/sachertorte/comm/indexGoodsItem/indexGoodsItem.js
Component({
  /**
   * 组件的属性列表
   */
  options: {
    styleIsolation: 'shared' //重点
  },
  properties: {
    goodItem: {
      type: Object,
      value: {},
    },
    city: {
      type:String,
      value:''
    }
  },

  /**
   * 组件的初始数据
   */
  data: {

  },

  /**
   * 组件的方法列表
   */
  methods: {
    goodsNavTo(event) {
      let id = event.currentTarget.dataset.id;
      wx.navigateTo({
        url: `/packageF/sachertorte/sachertorteGoods/sachertorteGoods?id=${id}&city=${this.data.city}`,
      })
    }
  }
})
